<template>
    <div class="m-style have-nav">
        <block-index-nav-bar :title="'固定资产详情'"></block-index-nav-bar>

        <div>
            <!--            <van-row class="title-search">-->
            <!--                <van-col span="16">-->
            <!--                    <van-search-->
            <!--                        v-model="number"-->
            <!--                        placeholder="请输入设备编号"-->
            <!--                        @search="onSearch"-->
            <!--                    >-->
            <!--                    </van-search>-->
            <!--                </van-col>-->
            <!--                <van-col span="8" class="title-search-btn-group">-->
            <!--                    <van-button @click="onSearch">搜索</van-button>-->
            <!--                </van-col>-->
            <!--            </van-row>-->

            <m_pageList
                ref="pageList"
                :url="url"
                :cols="cols"
                :list-cond="listCond"
            >
                <template v-slot="scope">
                    <strong>{{ scope.row.number }}</strong>
                </template>
            </m_pageList>

        </div>

    </div>
</template>

<script>
import blockIndexNavBar from "@/components/blockIndexNavBar";
import m_pageList from "@/uitl/m_pageList";
import click_pageList from "@/uitl/click_pageList";
import {API_URL} from "@/config/urlInfo";

export default {
    name: "aloneLedger",
    components: {
        blockIndexNavBar,
        m_pageList,
        click_pageList
    },
    data() {
        return {
            number: "",
            url: API_URL.alonePerson,
            cols: {
                show: [
                    {title: '设备名称', field: 'name'},
                    {title: '品牌', field: 'brand'},
                    {title: '生产商', field: 'manufacturer'},
                    {title: '种类名称', field: 'equipmentName'},
                    {title: '所属部门', field: 'dep'},
                    {title: '责任人', field: 'responsible'},
                    {title: '使用人', field: 'person'},
                    {title: '采购日期', field: 'purchaseDate'},
                    {title: '保修期至', field: 'warrantyPeriod'},
                    {title: '报废期至', field: 'expirationDate'},
                    {title: '用途', field: 'use'},
                    {title: '购买人', field: 'purchaser'},
                    {title: '启用日期', field: 'activationDate'},
                    {title: '生产日期', field: 'productionDate'},
                    {title: '出厂编号', field: 'serialNumber'},
                    {title: '设备状态', field: 'type'},
                    {title: '币种', field: 'currency'},
                    {title: '安装位置', field: 'installationLocation'},
                    {title: '购买合同', field: 'purchaseContract'},
                    {title: '预计使用', field: 'expectedUse'},
                    {title: '财务编号', field: 'financialNumber'},
                    {title: '价格', field: 'price'},
                    {title: '位置', field: 'address'}
                ],
                // hide: [
                //
                // ]
            },
            show: true,
            loading: false,
            listCond: {ledgerId: this.$route.query.ledgerId}

        }
    },
    methods: {
        // toDetail(item) {
        //     this.$router.push({path: '/assets-mobile/alonePersonInfo', query: {id: item.id}});
        // },
        // onSearch() {
        //     this.listCond = {
        //         number: this.number
        //     };
        // }
    }
}
</script>

<style scoped>

</style>